package com.gjy.design.composite.f;

import java.util.List;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-11 10:57:25
 */
public abstract class FileSystemComponent {

    protected String name;

    public FileSystemComponent(String name) {
        this.name = name;
    }

    public abstract void display();

    public abstract void add(FileSystemComponent component);

    public abstract void remove(FileSystemComponent component);

    public abstract List<FileSystemComponent> getChildren();

}
